package cn.wolfcode.crm.service;

import cn.wolfcode.crm.domain.ClientLost;
import cn.wolfcode.crm.domain.StudentOfficial;
import cn.wolfcode.crm.query.StudentOfficialQueryObject;
import cn.wolfcode.crm.util.PageResult;
import org.apache.poi.ss.usermodel.Workbook;

import java.awt.event.PaintEvent;
import java.io.IOException;
import java.util.List;

public interface IStudentOfficialService {

    void deleteByPrimaryKey(Long id);

    void saveOrUpdate(StudentOfficial entity);

    StudentOfficial selectByPrimaryKey(Long id);

    List<StudentOfficial> selectAll();

    PageResult query(StudentOfficialQueryObject qo);

    //做学生查询回显
    StudentOfficial getOwnTuitionByClientId(Long id);

    int sengMsg(StudentOfficial studentOfficial) throws IOException;

    Workbook exportXls(StudentOfficialQueryObject qo);

    //改变学员状态(休学)
    void change2quit(Long id);

    //改变学员状态(休学)
    void change2lost(ClientLost cl);

    //改变学员状态(转班)
    void change2class(Long aLong, Long id);
}
